<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Ane admin Login</title>
</head>

<style>
    body {
        font-family: Arial, sans-serif;
        margin: 0;
        padding: 0;
        background-color: #f2f2f2;
        background-image: url('background.jpg');
        background-size: cover;
        background-position: center;
    }

    .login-box {
        background-color: rgba(255, 255, 255, 0.7);
        border-radius: 12px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        padding: 24px;
        width: 280px;
    }

    .container {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh;
    }

    .login-box h2 {
        text-align: center;
        margin-bottom: 20px;
    }

    .login-box h3 {
        margin-bottom: 10px;
        color: #e62626;
        text-align: center;
        font-size: 1em;
        margin-top: -10px;
    }

    .login-box input[type="text"],
    .login-box input[type="password"] {
        width: 100%;
        padding: 12px;
        border: 1px solid #ccc;
        border-radius: 6px;
        margin-bottom: 16px;
        box-sizing: border-box;
    }

    .login-box input[type="submit"] {
        width: 100%;
        background: #50b23c;
        border-color: #50b23c;
        color: #fff;
        border: none;
        padding: 12px;
        border-radius: 6px;
        cursor: pointer;
    }

    .login-box input[type="submit"]:hover {
        background: #85ce61;
    }

    .login-box .demo {
        text-align: center;
        margin-bottom: 0;
    }
</style>

<body class="text-center">
    <div class="container">
        <div class="login-box">
            <h2>Ane Admin</h2>
            {% if msg %}
            <h3>{{msg}}</h3>
            {% endif %}
            <form method="post">
                <input type="text" name="username" placeholder="Username" required>
                <input type="password" name="password" placeholder="Password" required>
                <input type="submit" value="Login">
            </form>
            <p class="demo">演示用户:deme 密码:123456</p>
        </div>
    </div>
</body>

</html>